package com.xbongbong.pro.businesstage.pojo.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Objects;

/**
 * @Auther: yingjianfeng
 * @Date: 2021/12/9 13:33
 * @Description:
 */
@Getter
@Setter
@ToString
public class CommonJumpDTO extends StageJumpBaseDTO {
    /**
     * 0 不是从审批进来的  1 从审批进来的
     */
    private Integer fromApproval;

    /**
     * 是否新建
     */
    private Boolean isNew;

    /**
     * 是否外链
     */
    private Integer fromOuterLink;

    public CommonJumpDTO() {
    }

    public CommonJumpDTO(Integer saasMark, Integer businessType, Long formId, Long dataId) {
        super(saasMark, businessType, formId, dataId);
    }

    public Boolean getIsNew() {
        return Objects.nonNull(isNew) && isNew;
    }
}
